package demo;

import javax.imageio.IIOException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class HelloWorld {
    public static void main(String[] args) {
        try(FileOutputStream fos = new FileOutputStream("“fos.text");){
            String str="大家好";
            fos.write(str.getBytes(StandardCharsets.UTF_8));
            System.out.println("写出完毕");
            System.out.println("分支上进行了修改操作");
            System.out.println("主线上添加了一句代码！");
            System.out.println("分支上有修改了一行内容！");
            System.out.println("添加了一段新内容！");
        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
